import axios from 'axios'
import qs from 'qs'

const axiosq = axios.create({
  timeout: 30000,
  headers: {
    'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
  },
  transformRequest: [
    function(data) {
      return qs.stringify(data)
    }
  ],
  paramsSerializer: function(data) {
    return qs.stringify(data)
  }
})
export default axiosq